package com.xydtech.ecard.ecard.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xydtech.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 电子名片商户任务记录对象 ecard_merchant_task
 *
 * @author xydtech
 * @date 2023-07-31
 */
public class EcardApiMerchantTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 商户ID */
    private Long merchantId;

    /** 办理人ID */
    private Long cmRegistId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date creationTime;

    /** 完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date finishTime;

    /** 任务截止日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endDate;

    /** 任务状态，0正常 1完成 2超时完成 */
    private String taskSts;


    /** 门头名称 */
    private String handName;
    /** 地图地址 */
    private String mapAddress;
    /** 状态值 */
    private String stsName;
    /** 坐标 */
    private String coordinate;
    /** 营销重点 */
    private String marketingFocus;

    /** 商户类型：1-个人，2-商户，3-企业，4-新型农业主体 */
    private String merchantType;


    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setMerchantId(Long merchantId)
    {
        this.merchantId = merchantId;
    }

    public Long getCmRegistId()
    {
        return cmRegistId;
    }
    public void setCreationTime(Date creationTime)
    {
        this.creationTime = creationTime;
    }

    public Date getCreationTime()
    {
        return creationTime;
    }
    public void setFinishTime(Date finishTime)
    {
        this.finishTime = finishTime;
    }

    public Date getFinishTime()
    {
        return finishTime;
    }
    public void setEndDate(Date endDate)
    {
        this.endDate = endDate;
    }

    public Date getEndDate()
    {
        return endDate;
    }
    public void setTaskSts(String taskSts)
    {
        this.taskSts = taskSts;
    }

    public String getTaskSts()
    {
        return taskSts;
    }

    public void setCmRegistId(Long cmRegistId) {
        this.cmRegistId = cmRegistId;
    }

    public String getHandName() {
        return handName;
    }

    public void setHandName(String handName) {
        this.handName = handName;
    }

    public String getMapAddress() {
        return mapAddress;
    }

    public void setMapAddress(String mapAddress) {
        this.mapAddress = mapAddress;
    }

    public Long getMerchantId() {
        return merchantId;
    }

    public String getStsName() {
        return stsName;
    }

    public void setStsName(String stsName) {
        this.stsName = stsName;
    }

    public String getCoordinate() {
        return coordinate;
    }

    public void setCoordinate(String coordinate) {
        this.coordinate = coordinate;
    }

    public String getMarketingFocus() {
        return marketingFocus;
    }

    public void setMarketingFocus(String marketingFocus) {
        this.marketingFocus = marketingFocus;
    }

    public String getMerchantType() {
        return merchantType;
    }

    public void setMerchantType(String merchantType) {
        this.merchantType = merchantType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("merchantId", getMerchantId())
                .append("cmRegistId", getCmRegistId())
                .append("creationTime", getCreationTime())
                .append("finishTime", getFinishTime())
                .append("endDate", getEndDate())
                .append("taskSts", getTaskSts())
                .append("stsName", getStsName())
                .append("handName", getHandName())
                .append("mapAddress", getMapAddress())
                .append("coordinate", getCoordinate())
                .append("marketingFocus", getMarketingFocus())
                .append("merchantType", getMerchantType())
                .toString();
    }
}
